package dao;
import org.apache.ibatis.annotations.Param;
import pojo.Books;
import java.util.List;
public interface BookMapper {
    int addBook(Books books);
    int delete(int id);
    int updateBook(Books books);
    //根据id进行查询
    Books queryBookByID(int id);
    List<Books> queryAllBook();
    //模糊查询
    List<Books> queryBookByKeyword(@Param("start") int start, @Param("rows") int rows,@Param("keyword") String keyword,@Param("keyword2")String keyword2);
    //根据书名进行查询
    Books queryBookByBookName(@Param("bookName") String bookName);
    //怕错那你就会永远错,根据条件查询总记录数
    int findTotalCount(@Param("string_01") String string_01,@Param("string_02") String string_02 );
    //
}
